﻿#include <iostream>
using namespace std;
class Person
{
public:
	string name;
	int age;
	void setValue(const string& name, const int& age);
	void show();
};
void Person::setValue(const string& name, const int& age)
{
	this->name = name;
	this->age = age;
}
void Person::show()
{
	cout << "姓名：" << this->name << ",年龄：" << this->age << endl;
}
int main()
{
	Person p;
	p.setValue("三毛", 29);
	p.show();
}

